package com.ruoyi.constroller.company;

import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.company.domain.ComCompanyInfo;
import com.ruoyi.company.service.IComCompanyInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*;

import javax.servlet.http.HttpServletResponse;
import java.util.List;

/**
 * 公司信息Controller
 *
 * @author ruoyi
 * @date 2024-02-11
 */
@RestController
@RequestMapping("/company/info")
public class ComCompanyInfoController extends BaseController {
    @Autowired
    private IComCompanyInfoService comCompanyInfoService;

    /**
     * 查询公司信息列表
     */
    @GetMapping("/list")
    public TableDataInfo list(ComCompanyInfo comCompanyInfo) {
        startPage();
        List<ComCompanyInfo> list = comCompanyInfoService.selectComCompanyInfoList(comCompanyInfo);
        return getDataTable(list);
    }

}
